//
//  XSHTTPManager.h
//  MeiLiYiChu
//
//  Created by mac on 16/2/24.
//  Copyright © 2016年 mac. All rights reserved.
//
typedef void(^XSBlock)(NSMutableArray *array);
//跳转传值
#define httpUrl(url) [NSString stringWithFormat:@"http://vapi.yuike.com/1.0/brand/detail.php?jsonp_callback&sid=&brand_id=%@&yk_user_id=0&mid=457465&_=1457015444998",url];

//登录
#define LOGIN(userID) [NSString stringWithFormat:@"http://vapi.yuike.com/1.0/user/login.php?mid=457465&phone=%@&pwd=2e62873b8325b5d549b8471c39a4969c&sid=1c4f10e0bfd4f4161ae2bcc8db3f59cf&yk_appid=1&yk_cbv=2.9.3.1&yk_pid=1&yk_user_id=5121340&sign=0eb135eebe4e75c7674454fdfe5e3012",userID];

//login.php?mid=457465&phone=13014681232&pwd=7a5484175c268409440225fd2342435a&sid=9f47d01b12a33f5d551b99019a6ecb4f&yk_appid=1&yk_cbv=2.9.3.1&yk_pid=1&yk_user_id=5121436&sign=9740180f14c9926828790338edcd1539
//注册
#define Register(code,userTF,psw)[NSString stringWithFormat:@"http://vapi.yuike.com/1.0/user/register.php?bind_yk_user_id=0&code=%@&mid=457465&phone=%@&pid=1&pwd=%@&sid=169d8a5b98c75581540fa15d121d833b&yk_appid=1&yk_cbv=2.9.3.1&yk_pid=1&yk_user_id=5121340&sign=fd36f21d5ad79b11ff73d2810e0e9863",code,userTF,psw];


//http://vapi.yuike.com/1.0/user/register.php?bind_yk_user_id=0&code=1111&mid=457465&phone=13211111112&pid=1&pwd=bdfd8c69304d70a44374607373fa14f9&sid=169d8a5b98c75581540fa15d121d833b&yk_appid=1&yk_cbv=2.9.3.1&yk_pid=1&yk_user_id=5121340&sign=fd36f21d5ad79b11ff73d2810e0e9863
#import <Foundation/Foundation.h>

@interface XSHTTPManager : NSObject


//获得分类数据
+(void)getBrandPlistWithComplection:(void(^)(NSMutableArray *array,NSMutableArray * array1))block  ;

//登录
+(void)getLoginPlistWithComplection:(XSBlock)block withUserID:(NSString *)ID Withpsw:(NSString *)psw;
//注册
+(void)getRegisterPlistWithComplection:(void(^)(NSString *dic))block withUserID:(NSString *)ID Withpsw:(NSString *)psw :(NSString *)test;

//第一次登录
+(BOOL)isState;

+(BOOL)isLogin;

//获得主页scroll数据
+(void)getScrollPlistWithComplection:(XSBlock)block;
//scoll详情界面
+(void)getFirstScrollPicWithComplection:(XSBlock)block;

+(void)getScollDetailWithComplection:(void(^)(NSMutableArray *array,NSString * next_cursor))block  :(NSString *)url;

//首页collection
+(void)getCollectionPlistWithComplection:(void(^)(NSMutableArray *array,NSString * next_cursor))block  :(NSInteger)page seletBtnCurrent:(NSString *)index;

+(void)getBtnPlistWithComplection:(void(^)(NSMutableArray * leftArr,NSMutableArray *rightArr,NSString * imageUrl,NSMutableArray *titleArr))block  ;

//加盟界面数据
+(void)getJoinPlistWithComplection:(void(^)(NSMutableArray *urlArr))block;
//品牌排行
+(void)getBrandChatWithComplection:(void(^)(NSMutableArray *array,NSMutableArray *array2,NSMutableArray *array3))block;
//排行详情
+(void)getBrandDetailWithComplection:(XSBlock)block withUrl:(NSString *)url;


//0元购物头像
+(void)getZeroLabAndImageWithComplection:(XSBlock)block withUrl:(NSString *)url;

//0元专区数据
+(void)getZeroPlistWithComplection:(XSBlock)block withUrl:(NSString *)url ;

//获得验证码
+(void)getTestWithComplection:(void(^)(NSString *dic))block withUser:(NSString *)user psw:(NSString *)psw;

@end
